package chapter03.demo03;

public class Example03 {
    static class Student{
        String name;
        int age;
        void read(){
            System.out.println("大家好,我是"+name+",年龄"+age);
        }
    }
    public static class Example02{
        public static void main (String[] args){
            Student stu = new Student();
            stu.name = "张三";
            stu.age = -18;
            stu.read();
        }
    }
}
